package com.carful.xigua.modules.common.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author Administrator
 * Date 2024/1/24 13:34
 * Description
 */

@Configuration
public class WebConfig implements WebMvcConfigurer {

    // 添加静态资源目录
    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler("/static/**")
//                .addResourceLocations("file:" + "file/data/");
    }

}
